package com.yuanshi.utils

import org.apache.spark.sql.SparkSession

object SparkUtils {
  object SparkUtils {
    def getSparkSession(name: String, master: String = "local[*]"): SparkSession = {
      SparkSession.builder().master(master).appName(name).getOrCreate()
    }
  }
}
